package com.koron.ticket.work.workflow.mapper;

import com.koron.ticket.work.workflow.bean.WorkFlow;
import com.koron.ticket.work.workflow.bean.WorkFlowQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface WorkFlowMapper {
    void insert(WorkFlow workFlow);

    void batchInsert(List<WorkFlow> list);

    void update(WorkFlow workFlow);

    void deleteById(@Param("id") String id);

    List<WorkFlow> getList(WorkFlowQuery workFlowQuery);

    WorkFlow getSingle(WorkFlowQuery workFlowQuery);

    void deleteByWorkTicketId(@Param("workTicketId") String workTicketId);

    int deleteByWorkTicketIdAndStatus(@Param("workTicketId")String workTicketId,@Param("status")Integer status);

    List<WorkFlow> queryByWorkTicketIdIn(@Param("workTicketIdCollection")Collection<String> workTicketIdCollection);

}
